<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>小试牛刀</title>
    <meta name="generator" content="HTMLTestRunner 0.8.2.2"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
    
<style type="text/css" media="screen">
body        { font-family: Microsoft YaHei,Tahoma,arial,helvetica,sans-serif;padding: 20px; font-size: 120%; }
table       { font-size: 100%; }
/* -- heading ---------------------------------------------------------------------- */
.heading {
    margin-top: 0ex;
    margin-bottom: 1ex;
}
.heading .description {
    margin-top: 4ex;
    margin-bottom: 6ex;
}
/* -- report ------------------------------------------------------------------------ */
#total_row  { font-weight: bold; }
.passCase   { color: #5cb85c; }
.failCase   { color: #d9534f; font-weight: bold; }
.errorCase  { color: #f0ad4e; font-weight: bold; }
.hiddenRow  { display: none; }
.testcase   { margin-left: 2em; }
</style>

</head>
<body >
<script language="javascript" type="text/javascript">
output_list = Array();
/*level 调整增加只显示通过用例的分类 --Findyou
0:Summary //all hiddenRow
1:Failed  //pt hiddenRow, ft none
2:Pass    //pt none, ft hiddenRow
3:All     //pt none, ft none
*/
function showCase(level) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        id = tr.id;
        if (id.substr(0,2) == 'ft') {
            if (level == 2 || level == 0 ) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
        if (id.substr(0,2) == 'pt') {
            if (level < 2) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
    }
    //加入【详细】切换文字变化 --Findyou
    detail_class=document.getElementsByClassName('detail');
	//console.log(detail_class.length)
	if (level == 3) {
		for (var i = 0; i < detail_class.length; i++){
			detail_class[i].innerHTML="收起"
		}
	}
	else{
			for (var i = 0; i < detail_class.length; i++){
			detail_class[i].innerHTML="详细"
		}
	}
}
function showClassDetail(cid, count) {
    var id_list = Array(count);
    var toHide = 1;
    for (var i = 0; i < count; i++) {
        //ID修改 点 为 下划线 -Findyou
        tid0 = 't' + cid.substr(1) + '_' + (i+1);
        tid = 'f' + tid0;
        tr = document.getElementById(tid);
        if (!tr) {
            tid = 'p' + tid0;
            tr = document.getElementById(tid);
        }
        id_list[i] = tid;
        if (tr.className) {
            toHide = 0;
        }
    }
    for (var i = 0; i < count; i++) {
        tid = id_list[i];
        //修改点击无法收起的BUG，加入【详细】切换文字变化 --Findyou
        if (toHide) {
            document.getElementById(tid).className = 'hiddenRow';
            document.getElementById(cid).innerText = "详细"
        }
        else {
            document.getElementById(tid).className = '';
            document.getElementById(cid).innerText = "收起"
        }
    }
}
function html_escape(s) {
    s = s.replace(/&/g,'&amp;');
    s = s.replace(/</g,'&lt;');
    s = s.replace(/>/g,'&gt;');
    return s;
}
</script>
<div class='heading'>
<h1 style="font-family: Microsoft YaHei">小试牛刀</h1>
<p class='attribute'><strong>测试人员 : </strong> summer</p>
<p class='attribute'><strong>开始时间 : </strong> 2018-10-26 22:18:32</p>
<p class='attribute'><strong>合计耗时 : </strong> 0:00:02.775614</p>
<p class='attribute'><strong>测试结果 : </strong> 共 7，通过 7，通过率= 100.00%</p>

<p class='description'>test1017</p>
</div>


<p id='show_detail_line'>
<a class="btn btn-primary" href='javascript:showCase(0)'>概要{ 100.00% }</a>
<a class="btn btn-danger" href='javascript:showCase(1)'>失败{ 0 }</a>
<a class="btn btn-success" href='javascript:showCase(2)'>通过{ 7 }</a>
<a class="btn btn-info" href='javascript:showCase(3)'>所有{ 7 }</a>
</p>
<table id='result_table' class="table table-condensed table-bordered table-hover">
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row' class="text-center success" style="font-weight: bold;font-size: 16px;">
    <td>用例集/测试用例</td>
    <td>总计</td>
    <td>通过</td>
    <td>失败</td>
    <td>错误</td>
    <td>详细</td>
</tr>

<tr class='passClass warning'>
    <td>API_Frame_Work_1019.common.test_api.TestApi</td>
    <td class="text-center">7</td>
    <td class="text-center">7</td>
    <td class="text-center">0</td>
    <td class="text-center">0</td>
    <td class="text-center"><a href="javascript:showClassDetail('c1',7)" class="detail" id='c1'>详细</a></td>
</tr>

<tr id='pt1_1' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_api_1: dict() -> new empty dictionary</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt1_1' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_1'>通过</button>
    <div id='div_pt1_1' class="collapse">  -->
    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt1_1' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt1_1'>通过</button>
    <div id='div_pt1_1' class="collapse in" align="left">
    <pre>
    
pt1_1: 2018-10-26 22:18:32,251-INFO-my_log.py-python10-日志信息:开始测试了
2018-10-26 22:18:32,260-INFO-my_log.py-python10-日志信息:正在运行第1条用例：登录
2018-10-26 22:18:32,268-INFO-my_log.py-python10-日志信息:测试数据是:{"mobilephone":"13667670088","pwd":"123456"}
2018-10-26 22:18:32,362-INFO-my_log.py-python10-日志信息:正在进行post请求
2018-10-26 22:18:32,373-INFO-my_log.py-python10-日志信息:http请求的结果是:{"status":1,"code":"10001","data":null,"msg":"登录成功"}
2018-10-26 22:18:32,383-INFO-my_log.py-python10-日志信息:测试结果是：{'msg': '登录成功', 'status': 1, 'data': None, 'code': '10001'}
2018-10-26 22:18:32,532-INFO-my_log.py-python10-日志信息:结束这个用例的测试


    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_2' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_api_2: dict() -> new empty dictionary</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt1_2' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_2'>通过</button>
    <div id='div_pt1_2' class="collapse">  -->
    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt1_2' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt1_2'>通过</button>
    <div id='div_pt1_2' class="collapse in" align="left">
    <pre>
    
pt1_2: 2018-10-26 22:18:32,544-INFO-my_log.py-python10-日志信息:开始测试了
2018-10-26 22:18:32,563-INFO-my_log.py-python10-日志信息:正在运行第2条用例：正常投资
2018-10-26 22:18:32,575-INFO-my_log.py-python10-日志信息:测试数据是:{"memberId":"23527","password":"123456","loanId":"${loan_id}","amount":"100"}
2018-10-26 22:18:32,898-INFO-my_log.py-python10-日志信息:正在进行get请求
2018-10-26 22:18:32,904-INFO-my_log.py-python10-日志信息:http请求的结果是:{"status":1,"code":"10001","data":null,"msg":"竞标成功"}
2018-10-26 22:18:32,909-INFO-my_log.py-python10-日志信息:测试结果是：{'msg': '竞标成功', 'status': 1, 'data': None, 'code': '10001'}
2018-10-26 22:18:33,058-INFO-my_log.py-python10-日志信息:结束这个用例的测试


    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_3' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_api_3: dict() -> new empty dictionary</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt1_3' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_3'>通过</button>
    <div id='div_pt1_3' class="collapse">  -->
    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt1_3' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt1_3'>通过</button>
    <div id='div_pt1_3' class="collapse in" align="left">
    <pre>
    
pt1_3: 2018-10-26 22:18:33,066-INFO-my_log.py-python10-日志信息:开始测试了
2018-10-26 22:18:33,078-INFO-my_log.py-python10-日志信息:正在运行第3条用例：不输入投资金额
2018-10-26 22:18:33,086-INFO-my_log.py-python10-日志信息:测试数据是:{"memberId":"23527","password":"123456","loanId":"${loan_id}","amount":""}
2018-10-26 22:18:33,274-INFO-my_log.py-python10-日志信息:正在进行get请求
2018-10-26 22:18:33,284-INFO-my_log.py-python10-日志信息:http请求的结果是:{"status":0,"code":"11003","data":null,"msg":"参数错误:所有参数都不能为空"}
2018-10-26 22:18:33,290-INFO-my_log.py-python10-日志信息:测试结果是：{'msg': '参数错误:所有参数都不能为空', 'status': 0, 'data': None, 'code': '11003'}
2018-10-26 22:18:33,449-INFO-my_log.py-python10-日志信息:结束这个用例的测试


    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_4' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_api_4: dict() -> new empty dictionary</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt1_4' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_4'>通过</button>
    <div id='div_pt1_4' class="collapse">  -->
    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt1_4' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt1_4'>通过</button>
    <div id='div_pt1_4' class="collapse in" align="left">
    <pre>
    
pt1_4: 2018-10-26 22:18:33,459-INFO-my_log.py-python10-日志信息:开始测试了
2018-10-26 22:18:33,465-INFO-my_log.py-python10-日志信息:正在运行第4条用例：投资金额为负数
2018-10-26 22:18:33,475-INFO-my_log.py-python10-日志信息:测试数据是:{"memberId":"23527","password":"123456","loanId":"${loan_id}","amount":"-100"}
2018-10-26 22:18:33,770-INFO-my_log.py-python10-日志信息:正在进行post请求
2018-10-26 22:18:33,778-INFO-my_log.py-python10-日志信息:http请求的结果是:{"status":0,"code":"11007","data":null,"msg":"参数错误，投资金额必须是能被100整除的正整数"}
2018-10-26 22:18:33,785-INFO-my_log.py-python10-日志信息:测试结果是：{'msg': '参数错误，投资金额必须是能被100整除的正整数', 'status': 0, 'data': None, 'code': '11007'}
2018-10-26 22:18:33,941-INFO-my_log.py-python10-日志信息:结束这个用例的测试


    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_5' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_api_5: dict() -> new empty dictionary</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt1_5' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_5'>通过</button>
    <div id='div_pt1_5' class="collapse">  -->
    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt1_5' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt1_5'>通过</button>
    <div id='div_pt1_5' class="collapse in" align="left">
    <pre>
    
pt1_5: 2018-10-26 22:18:33,952-INFO-my_log.py-python10-日志信息:开始测试了
2018-10-26 22:18:33,963-INFO-my_log.py-python10-日志信息:正在运行第1条用例：登录
2018-10-26 22:18:33,972-INFO-my_log.py-python10-日志信息:测试数据是:{"mobilephone":"13755127763","pwd":"123456"}
2018-10-26 22:18:34,068-INFO-my_log.py-python10-日志信息:正在进行post请求
2018-10-26 22:18:34,074-INFO-my_log.py-python10-日志信息:http请求的结果是:{"status":1,"code":"10001","data":null,"msg":"登录成功"}
2018-10-26 22:18:34,086-INFO-my_log.py-python10-日志信息:测试结果是：{'msg': '登录成功', 'status': 1, 'data': None, 'code': '10001'}
2018-10-26 22:18:34,321-INFO-my_log.py-python10-日志信息:结束这个用例的测试


    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_6' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_api_6: dict() -> new empty dictionary</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt1_6' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_6'>通过</button>
    <div id='div_pt1_6' class="collapse">  -->
    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt1_6' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt1_6'>通过</button>
    <div id='div_pt1_6' class="collapse in" align="left">
    <pre>
    
pt1_6: 2018-10-26 22:18:34,325-INFO-my_log.py-python10-日志信息:开始测试了
2018-10-26 22:18:34,332-INFO-my_log.py-python10-日志信息:正在运行第2条用例：加标
2018-10-26 22:18:34,339-INFO-my_log.py-python10-日志信息:测试数据是:{"memberId":"23526","title":"23526to_add_loan", "amount" : "10000","loanRate":"12.0","loanTerm":"3","loanDateType":"0","repaymemtWay":"11","biddingDays":"5"}
2018-10-26 22:18:34,435-INFO-my_log.py-python10-日志信息:正在进行get请求
2018-10-26 22:18:34,444-INFO-my_log.py-python10-日志信息:http请求的结果是:{"status":1,"code":"10001","data":null,"msg":"加标成功"}
2018-10-26 22:18:34,451-INFO-my_log.py-python10-日志信息:测试结果是：{'msg': '加标成功', 'status': 1, 'data': None, 'code': '10001'}
2018-10-26 22:18:34,593-INFO-my_log.py-python10-日志信息:结束这个用例的测试


    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_7' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_api_7: dict() -> new empty dictionary</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_pt1_7' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_pt1_7'>通过</button>
    <div id='div_pt1_7' class="collapse">  -->
    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_pt1_7' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_pt1_7'>通过</button>
    <div id='div_pt1_7' class="collapse in" align="left">
    <pre>
    
pt1_7: 2018-10-26 22:18:34,604-INFO-my_log.py-python10-日志信息:开始测试了
2018-10-26 22:18:34,613-INFO-my_log.py-python10-日志信息:正在运行第3条用例：审核
2018-10-26 22:18:34,619-INFO-my_log.py-python10-日志信息:测试数据是:{"id" : "${loan_id}", "status" : "4"}
2018-10-26 22:18:34,843-INFO-my_log.py-python10-日志信息:正在进行get请求
2018-10-26 22:18:34,852-INFO-my_log.py-python10-日志信息:http请求的结果是:{"status":1,"code":"10001","data":null,"msg":"更新状态成功：竞标开始，当前标为竞标中状态"}
2018-10-26 22:18:34,857-INFO-my_log.py-python10-日志信息:测试结果是：{'msg': '更新状态成功：竞标开始，当前标为竞标中状态', 'status': 1, 'data': None, 'code': '10001'}
2018-10-26 22:18:35,015-INFO-my_log.py-python10-日志信息:结束这个用例的测试


    </pre>
    </div>
    </td>
</tr>

<tr id='total_row' class="text-center active">
    <td>总计</td>
    <td>7</td>
    <td>7</td>
    <td>0</td>
    <td>0</td>
    <td>通过率：100.00%</td>
</tr>
</table>

<div id='ending'>&nbsp;</div>
    <div style=" position:fixed;right:50px; bottom:30px; width:20px; height:20px;cursor:pointer">
    <a href="#"><span class="glyphicon glyphicon-eject" style = "font-size:30px;" aria-hidden="true">
    </span></a></div>
    
</body>
</html>
